package com.centling.smartSealForPhone.activity

import android.support.v7.app.AppCompatActivity
import android.os.Bundle
import android.webkit.WebViewClient
import com.centling.smartSealForPhone.R
import kotlinx.android.synthetic.main.activity_user_protocol.*

class UserProtocolActivity : TitleBarActivity() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_user_protocol)
        setTitleBarText("用户协议")
        val webView = tv_user_protocol_webview.settings
        webView.javaScriptEnabled = true
        tv_user_protocol_webview.loadUrl("file:///android_asset/wintec_user_protocol.html")
        tv_user_protocol_webview.setWebViewClient(WebViewClient())
    }
}
